<template>
	<view class="firstNav">
		<view class="iconfont icon-sousuo icon">
		</view>
		<view class="middle">
			<navigator open-type="switchTab" class="text" url="/pages/index/index">
				推荐
			</navigator>
			<navigator open-type="navigate" class="text" url="/pages/city/city">
				同城
			</navigator>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				
			}
		}
	}
</script>

<style scoped>
	.firstNav{
		z-index: 20;
		height: 35px;
		width: 100%;
		line-height: 35px;
		margin: 0 auto;
		position: fixed;
		top:25px;
		left: 0;
	}
	.icon{
		position: absolute;
		top:0;
		left: 0;
		color: #FFFFFF;
		width: 20%;
		font-size: 20px;
		text-align: center;

	}
	.middle{
		text-align: center;
	}
	.text{
		display: inline-block;
		margin: 0 20px;
		color: #FFFFFF;
	}
		
</style>
